<script setup>
import { onMounted } from 'vue'
// 海康播放器
import { useHikvisionPlayer } from '@/hooks/useHikvisionPlayer'
const { playVideo } = useHikvisionPlayer()
onMounted(() => {
  for (let i = 0; i < 8; i++) {
    playVideo({
      id: i,
      url: 'ws://admin:admin@192.168.1.100:554/h264/ch1/main/av_stream',
    })
  }
})
</script>
<template>
  <div class="grid grid-cols-4">
    <div
      :id="index"
      class="h-[50px]"
      v-for="(item, index) in 8"
      :key="index"
    ></div>
  </div>
</template>
